package org.example.dao.entity.post;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (PComment)实体类
 *
 * @author makejava
 * @since 2023-09-14 09:51:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PComment implements Serializable {
    private static final long serialVersionUID = -48384866480281998L;
    
    private Long id;
    
    private Long userId;
    
    private Long postId;
    
    private String content;
    
    private Date createTime = new Date();
    
    private Integer isValid = 1;
    
    private Integer isRead = 0;
    
    private Integer likeNum = 0;
    
    private Date updateTime = new Date();

    public PComment(Long id, Long userId, Long postId, String content) {
        this.id = id;
        this.userId = userId;
        this.postId = postId;
        this.content = content;
    }
}

